#include "registerwidget.h"
#include "ui_registerwidget.h"
#include "registeritemmodel.h"

RegisterWidget::RegisterWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::RegisterWidget)
{
    ui->setupUi(this);
    model = new RegisterItemModel(this);
    ui->tableView->setModel(model);
    ui->tableView->resizeColumnToContents(0);
    ui->tableView->resizeColumnToContents(1);
    ui->tableView->resizeColumnToContents(2);
}

RegisterWidget::~RegisterWidget()
{
    delete ui;
}
